// // permission.js是专门处理路由权限的
// import router from './router/index'

// router.beforeEach(async (to, from, next) => {
//   console.log(router)
//   console.log(router.history.current.pending.path)
//   if (to.path === router.history.current.pending.path) {
//     next(false)
//   } else {
//     next()
//   }
// }
// )
